a = 1
f = File.new("c:\\1.txt", "w")
5.times{
	a = a + 1
	puts a
	f.puts a
}
f.close